package com.youlu.campus.admin.course.service;

import com.youlu.campus.admin.course.dto.CourseVideoOpDTO;
import com.youlu.campus.admin.course.dto.CourseVideoSaveDTO;
import com.youlu.campus.admin.course.dto.CourseVideoSearchDTO;
import com.youlu.campus.entity.course.ActivityCourseVideo;
import org.springframework.data.domain.Page;


public interface CourseVideoService {
    /**
     * 视频保存
     *
     * @param saveDTO
     * @return
     */
    boolean save(CourseVideoSaveDTO saveDTO);

    /**
     * 视频列表
     *
     * @param saveDTO
     * @return
     */
    Page<ActivityCourseVideo> list(CourseVideoSearchDTO saveDTO);

    /**
     * 视频上下架
     *
     * @param saveDTO
     * @return
     */
    boolean operation(CourseVideoOpDTO saveDTO);
}
